/**
 * User: 韦新强/weixinqiang@cvte.com
 * Date: 2019/12/12 20:16
 * Desc:
 */
import Taro from "@tarojs/taro";

// eslint-disable-next-line import/prefer-default-export
export const get = (url: string) => {
  return new Promise((resolve, reject) => {
    Taro.request({
      url,
      success: res => {
        resolve(res.data);
      },
      fail: err => {
        reject(err);
      }
    });
  });
};
